/*
 * @Author: hechengfei h349187021@163.com
 * @Date: 2022-08-19 15:37:34
 * @LastEditors: hechengfei h349187021@163.com
 * @LastEditTime: 2022-08-19 17:11:21
 * @FilePath: \xiangmu\src\components\contractmanagement\RenewalTable.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { Space, Table } from 'antd';
import React from 'react';
import { inject, observer } from 'mobx-react'
const columns = [

    {
        title: '续费记录',
        dataIndex: 'renewal_record',
        key: 'renewal_record',
    },
    {
        title: '到期时间',
        dataIndex: 'end_date',
        key: 'end_date',
    },
    {
        title: '总金额',
        dataIndex: 'total_amount',
        key: 'total_amount',
    },
    {
        title: '已收款',
        dataIndex: 'received',
        key: 'received',
    },
    {
        title: '备注',
        dataIndex: 'remarks',
        key: 'remarks',
    },
    {
        title: '续费状态',
        dataIndex: 'contract_status',
        key: 'remarcontract_statusks',
    },
    {
        title: '业务员',
        dataIndex: 'user_name',
        key: 'user_name',
    },
    {
        title: '录入时间',
        dataIndex: 'entry_time',
        key: 'entry_time',
    },
    {
        title: '管理',
        key: 'renewal_fee_no',
        dataIndex: 'renewal_fee_no',
        render: (_, record) => (
            <Space size="middle">
                <button></button>
                <button></button>
            </Space>
        ),
    },
];


const RenewalTable = (props) => {
    const data = props.contractStore.displayrenewalinfo;
    console.log('111', data);
    return (
        <Table columns={columns} dataSource={data} />
    )
};

export default inject('contractStore')(observer(RenewalTable));